﻿#include "a661bridge.h"
#include "ui_a661bridge.h"

#include "importcfgdialog.h"

A661Bridge::A661Bridge(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::A661Bridge)
{
    ui->setupUi(this);

    //A661 Bridge界面初始化
    initialize();
}

A661Bridge::~A661Bridge()
{
    delete ui;
}


void A661Bridge::on_sr1621_pushButton_clicked()
{
    scadeVer = "R16.2.1";

    //对SCADE R16.2.1版本进行工程导入操作
    //弹出SCADE R16.2.1版本的导入界面
    importCfgDialog *imcfg = new importCfgDialog(this, scadeVer);

    //显示输入文件窗口
    imcfg->show();

    //该窗口隐藏
//    this->hide();
}

void A661Bridge::on_sr192_pushButton_clicked()
{
    //对SCADE R19.2版本进行工程导入操作
}

void A661Bridge::on_sr241_pushButton_clicked()
{
    //对SCADE R24.1版本进行工程导入操作
}


void A661Bridge::initialize()
{
    ui->sr1621_pushButton->setEnabled(true);
    ui->sr192_pushButton->setEnabled(false);
    ui->sr241_pushButton->setEnabled(false);
}
